$(document).ready(function(){
    $("#btn_save").click(function(){
           var error = false;
           if(document.getElementById('user_name').value==''){
                document.getElementById('user').innerHTML = "Please enter User-Id";
                error = true;
           } else {
                document.getElementById('user').innerHTML = "";
           }
           if(document.getElementById('password').value==''){
                document.getElementById('pass').innerHTML = "Please enter Password";
                error = true;
           } else {
               document.getElementById('pass').innerHTML = "";
           }
           if(!error){

                

               $.post("http://spark.tekmindz.com/cpng/rt/rocketalksave.php",{
                    user_id: $("#user_id").val(),
                    user_name: $("#user_name").val(),
                    password: $("#password").val()
                  } , function(data){
                        if(data.records=="Y")   // if no pos selected
                         {


                         } else {

                         }
              }, "json");
           }
          
       });    
});